Method and apparatus for establishing voiceprint model, computer device, and storage medium

ABSTRACT

A method and apparatus for establishing a voiceprint model, a computer device, and a storage medium are described herein. The method includes: collecting speech acoustic features in a speech signal to form a plurality of cluster structures; calculating an average value and a standard deviation of the plurality of cluster structures and then performing coordinate transformation and activation function calculation to obtain a feature vector; and obtaining a voiceprint model based on the feature vector.

The present application claims priority to Chinese Patent ApplicationNo. 201810433792.X, filed with the National Intellectual PropertyAdministration, PRC on May 8, 2018, and entitled “METHOD AND APPARATUSFOR ESTABLISHING VOICEPRINT MODEL, COMPUTER DEVICE, AND STORAGE MEDIUM”,which is incorporated herein by reference in its entirety.

TECHNICAL FIELD

The present disclosure relates to the field of computer technologies,and in particular, to a method and apparatus for establishing avoiceprint model, a computer device, and a storage medium.

BACKGROUND

The statements in this section merely provide background informationrelated to the present disclosure and do not necessarily constituteprior art.

Voiceprint is an acoustic wave spectrum that carries verbal informationand is displayed by an electroacoustic instrument. Modern scientificresearch shows that voiceprint is not only specific, but also relativelystable. A voice of an adult can remain relatively stable for a longtime. A voiceprint recognition algorithm identifies a speaker bylearning various speech features extracted from a sound map andestablishing a recognition model.

SUMMARY

A method for establishing a voiceprint model, including:

framing an input speech signal of a target user, and separatelyextracting speech acoustic features of the framed speech signal;

inputting the plurality of speech acoustic features into a deep learningmodel that is based on neural network training, and collecting thespeech acoustic features to form at least one cluster structure;

calculating an average value and a standard deviation of at least one ofthe cluster structure;

performing coordinate transformation and activation function calculationon the average value and the standard deviation to obtain a featurevector;

inputting the feature vector and an identity verification result of thetarget user into a preset basic model to obtain a voiceprint modelcorresponding to the target user, where the voiceprint model is used toverify whether an input speech signal belongs to the target user.

An apparatus for establishing a voiceprint model, including:

an extraction module, configured to frame an input speech signal of atarget user, and separately extract speech acoustic features of theframed speech signal;

a cluster structure module, configured to input the plurality of speechacoustic features into a deep learning model that is based on neuralnetwork training, and collect the speech acoustic features to form atleast one cluster structure;

a calculation module, configured to calculate an average value and astandard deviation of at least one of the cluster structure;

a feature vector module, configured to carry out coordinatetransformation and activation function calculation on the average valueand the standard deviation to obtain a feature vector; and

a model module, configured to input the feature vector and an identityverification result of the target user into a preset basic model toobtain a voiceprint model corresponding to the target user, where thevoiceprint model is used to verify whether an input speech signalbelongs to the target user.

A computer device including a memory and a processor, where the memorystores a computer readable instruction, and the steps of any of themethods described above are implemented when the processor executes thecomputer readable instruction.

A non-volatile computer readable storage medium storing a computerreadable instruction, where the steps of any of the methods describedabove are implemented when the computer readable instruction is executedby a processor.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic flow chart of a method for establishing avoiceprint model according to some embodiments;

FIG. 2 is a schematic flow chart of step S2 of a method for establishinga voiceprint model according to some embodiments;

FIG. 3 is a schematic flow chart of step S22 of a method forestablishing a voiceprint model according to some embodiments;

FIG. 4 is a schematic flow chart of step S5 of a method for establishinga voiceprint model according to some embodiments;

FIG. 5 is a schematic flow chart of step S1 of a method for establishinga voiceprint model according to some embodiments;

FIG. 6 is a schematic flow chart of step S11 of a method forestablishing a voiceprint model according to some embodiments;

FIG. 7 is a schematic flow chart of a method for establishing avoiceprint model according to some embodiments;

FIG. 8 is a schematic flow chart of step S1 of a method for establishinga voiceprint model according to some embodiments;

FIG. 9 is a schematic structural diagram of an apparatus forestablishing a voiceprint model according to some embodiments;

FIG. 10 is a schematic structural diagram of a cluster structure moduleof an apparatus for establishing a voiceprint model according to someembodiments;

FIG. 11 is a schematic structural diagram of a model module of anapparatus for establishing a voiceprint model according to someembodiments;

FIG. 12 is a schematic structural diagram of an extraction module of anapparatus for establishing a voiceprint model according to someembodiments;

FIG. 13 is a schematic structural diagram of an apparatus forestablishing a voiceprint model according to some embodiments;

FIG. 14 is a schematic structural diagram of an extraction module of anapparatus for establishing a voiceprint model according to someembodiments; and

FIG. 15 is a schematic structural block diagram of a computer deviceaccording to some embodiments.

DETAILED DESCRIPTION

Referring to FIG. 1, some embodiments provide a method for establishinga voiceprint model, including the steps.

S1: Frame an input speech signal of a target user, and separatelyextract speech acoustic features of the framed speech signal.

S2: input the plurality of speech acoustic features into a deep learningmodel that is based on neural network training, and collect the speechacoustic features to form at least one cluster structure.

S3: Calculate an average value and a standard deviation of at least oneof the cluster structure.

S4: Perform coordinate transformation and activation functioncalculation on the average value and the standard deviation to obtain afeature vector.

S5: Input the feature vector and an identity verification result of thetarget user into a preset basic model to obtain a voiceprint modelcorresponding to the target user, where the voiceprint model is used toverify whether an input speech signal belongs to the target user.

As described in step S1, voiceprint is a sound wave spectrum thatcarries verbal information and is displayed by electroacousticinstruments. Generation of a human language is a complex physiologicaland physical process between the human language center and vocal organs.The vocal organs (tongue, teeth, throat, lungs, and nasal cavity) usedby people in speech are very different in size and form, so thevoiceprints of any two people are different. A speech signal is ananalog signal that carries specific information, and a source thereof isa speech signal obtained by converting a sound signal emitted by aperson. Each person's voiceprint is different, and thus speech signalsobtained by converting the sounds generated by the same person whospeaks the same word are also different. Therefore, speech acousticfeatures contained in the speech signal are also different. The speechacoustic features are voiceprint information contained in the soundemitted by each person. Framing refers to dividing a continuous speechsignal into multiple segments. At the speech rate of a normal speech,the duration of the phoneme is about 50 to 200 ms, so the frame lengthis generally less than 50 ms, Microscopically, the frame length alsonecessarily includes enough vibration cycles. For the audio frequency ofvoice, the male voice is about 100 Hz, the female voice is about 200 Hz,and the cycles obtained by conversion are 10 ms and 5 ms. Generally, aframe should contain multiple cycles, and thus the cycle is generally atleast 20 ms. The so-called speech signal includes a continuous speech,such as a sentence and a paragraph. The speech acoustic feature may be aMel-Frequency Cepstral Coefficient (MFCC), or a Perceptual LinearPrediction Coefficient (PLP), or a Filter Bank Feature, or the like of aspeech segment. Certainly, the speech acoustic feature may also beoriginal speech data of the speech segment. Extracting the speechacoustic features of the speech signals of the target user means thatthe speech signals of the person who needs to build a voiceprint modelare extracted, while speech signals generated by a non-target user arenot extracted. The speech acoustic features are a speech signalcontaining a spoken portion extracted from a continuous speech signaland thus are a continuous speech signal. A plurality of segments ofspeech signals are obtained by framing the speech signal, and speechacoustic features of each segment of speech signals are separatelyextracted, thereby obtaining a plurality of speech acoustic features.

As described in step S2, the speech acoustic features are extracted fromthe framed speech signal and are a segment of speech signals, and thespeech signal is input into a neural network training model, with thepurpose of collecting and calculating the speech acoustic features,which facilitates statistics collection and calculation of speechacoustic features. A cluster structure is a collecting and calculatingresult for one or more speech acoustic features, which can embody thesame common features of a plurality of speech acoustic featurescollected together.

As described in step S3, after a plurality of speech acoustic featuresare input into the deep learning model that is based on the neuralnetwork, at least one cluster structure x1, x2, x1, . . . , xn is outputand obtained, and assuming that the cluster structure is a p-dimensionalvector, xn=(xi1,xi2, . . . , xip)^(T)(i=1,2, . . . n). The average valueand the standard deviation of the cluster structures are calculated. Theaverage value and the standard deviation of the cluster structures areobtained. A method for calculating the average value of a plurality ofcluster structures is as follows: first according to a formula:

${{xj} = {\frac{1}{n}{\sum\limits_{i = 1}^{n}{{xij}\left( {{j = 1},2,{\ldots\mspace{11mu} p}} \right)}}}},$calculating the average value of each component, then calculatingaverage vectors of p dimensions according to a formula: x0=(x1,x2, . . .,xj)^(T), and combining the average vectors of the p dimensions to formthe average value of the cluster structures: E(x). A formula forcalculating the standard deviation of a plurality of cluster structuresis D(x)=E{[x−E(x)][x−E(x)]^(T)}.

As described in step S4, the foregoing E(x) and D(x) are subjected toa-level mapping and b-level mapping. The a-level mapping is to performcoordinate transformation on the average value and standard deviation ofthe cluster structure, the b-level mapping is to calculate the averagevalue and standard deviation of the cluster structure through anactivation function to obtain a nonlinear result, where the result is afeature vector for establishing a voiceprint model.

As described in step S5, a system inputs the feature vector and anidentity verification result of the target user into a preset basicmodel to obtain a voiceprint model of the target user, and afterreceiving a speech signal, the voiceprint model determines whether aperson who generates the speech signal is the target user. The basicmodel refers to a neural network model, such as a BP neural networkmodel. The BP neural network is a multilayer network for weight trainingof nonlinear differentiable functions. The biggest characteristic of theBP neural network is that the highly non-linear mapping of the systemfrom pm space to yn space n (the number of output nodes) composed ofpattern vectors p of m input neurons can be achieved only by means ofsample data with no need to establish a mathematical model of thesystem. For the foregoing a-level mapping and b-level mapping, theprocesses of the two mappings are not listed in any particular order.Sigmoid can be used as the activation function of the b-level mapping.The Sigmoid function is a common S function in biology, also known as asigmoid growth curve, which is mainly used as a threshold function of aneural network and is physically closest to a biological neuron. Theform of a nonlinear activation function of the Sigmoid function isσ(x)=1/(1+e^(−x)), where x is an input speech acoustic feature, and e isa natural constant, which is a rule of mathematics and is about 2.71828.

Referring to FIG. 2, in some embodiments, the deep learning modelincludes a plurality of model layers. The step of inputting theplurality of speech acoustic features into a deep learning model that isbased on neural network training, and collecting the speech acousticfeatures to form at least one cluster structure includes:

S21: input the plurality of speech acoustic features into the deeplearning model.

S22: Select any time node t of the plurality of speech acousticfeatures, and establish the n-th model layer with the speech acousticfeatures in every tn time from the time node t, where n is a positiveinteger.

S23: Select a target model layer in the plurality of model layers andobtain at least one cluster structure generated at the target modellayer.

As described in step S21, a plurality of speech acoustic features areextracted from a continuous speech signal, so that the plurality ofspeech acoustic features are also continuous. When the plurality ofspeech acoustic features are input into the deep learning model, thespeech acoustic features are also input in time sequence.

As described in step S22, the plurality of speech acoustic features areeach a continuous sound signal, and if combined together, the speechacoustic features are also a continuous sound signal. In the pluralityof speech acoustic features, any time node t is selected, and then thespeech acoustic features within a tn time period from the time t arecollected to form a cluster structure at one of the model layers. Sincethe deep learning model has multiple model layers, the time node tselected on each model layer is different from the time period tn fromthe time t, and the number of cluster structures generated by each modellayer is not exactly the same. For example, the plurality of speechacoustic features have a total of 10 s, namely 10000 ms. The selectedtime node is the 2000-th ms, and a first model layer is established. Thefirst model layer is established at intervals of t1 (1 ms), and then thefirst model layers have a total of 10000 frames. Then a second modellayer is established, t2 is taken as 2 ms. The second model layer isestablished every 2 ms, and the second model layers have a total of 500frames.

As described in step S23, a plurality of model layers are obtained afterlearning by the deep learning model, and each model layer has aplurality of cluster structures. The system selects one of the modellayers as the target model layer, and selects cluster structures at thetarget model layer as parameters for subsequent generation of avoiceprint model.

Referring to FIG. 3, in some embodiments, a 5-layer model layer isestablished, and step S22 includes the following steps.

S221: Select any time node t of the plurality of speech acousticfeatures, and establish a first model layer with the speech acousticfeatures in every t1 time from the time node t.

S222: Establish a second model layer with the speech acoustic featuresin every t2 time from the time node t on the first model layer.

S223: Establish a third model layer with the speech acoustic features inevery t3 time from the time node t on the second model layer.

S224: Establish a fourth model layer with the speech acoustic featuresin every t4 time from the time node t on the third model layer.

S225: Establish a fifth model layer with the speech acoustic features inevery t5 time from the time node t on the fourth model layer, wheret1<t2<t3<t4<t5.

As described in step S221, any time node t is selected. For example, thespeech acoustic features have 10 s, namely 10000 ms. The selected timenode is the 2000-th ms, and a first model layer is established. Thefirst model layer is established at intervals of t1 (1 ms), and then thefirst model layers have a total of 10000 frames.

In step S222, based on the first model layer, it is still selected thatthe time node is the 2000-th ms. The second model layer is establishedevery t2 (2 ms), and then the second model layers have a total of 5000frames. In step S223, based on the second model layer, it is stillselected that the time node is the 2000-th ms. The third model layer isestablished every t3 (3 ms), and then the third model layers have atotal of 3334 frames. In step S224, based on the third model layer, itis still selected that the time node is the 2000-th ms. The fourth modellayer is established every t4 (4 ms), and then the fourth model layershave a total of 2500 frames. In step S225, based on the fourth modellayer, it is still selected that the time node is the 2000-th ms. Thesecond model layer is established every t5 (8 ms), and then the secondmodel layers have a total of 1250 frames. Finally, 1250 frames on thefifth model layer are collected to form cluster structures, and 1250cluster structures are finally obtained through a five-layer deeplearning model.

Referring to FIG. 4, further, in some embodiments, the step of inputtingthe feature vector and an identity verification result of the targetuser into a preset basic model to obtain a voiceprint modelcorresponding to the target user includes the following steps.

S51: Reduce dimensions of the feature vector of the voiceprint model.

S52: Input the dimension-reduced feature vector and the identityverification result of the target user into the preset basic model toobtain the voiceprint model.

In the foregoing steps, the system uses a Linear Discriminant Analysis(LDA) based on probability to reduce dimensions. The model design of thevoiceprint of the target user is then performed. At the same time, anoutput layer adopts a Softmax function calculation result. All nodes areinitialized with uniform random weights in the interval [−0.05 to 0.05],the initial offset is 0, and the final voiceprint model is obtained. Theinput of the softmax function is a vector, and the output thereof isalso a vector. Each element in the vector is a probability value between0 and 1. When the training model is biased, if the deviation degreebetween a prediction tag and an original real tag of the training setobtained from each training is too small, over-fitting will be caused,because the noise in the training set may also be learned. Therefore,the bias characterizes the fitting capacity of a learning algorithmitself. If the fitting capacity is not good, the bias is large, so thatunder-fitting is caused. In contrast, if the fitting capacity is toogood, the bias is small, and over-fitting occurs easily. During thetraining, it can be found that the bias should be gradually smaller intheory, indicating that the model is learning useful thingscontinuously.

Referring to FIG. 5, in some embodiments, the step of extracting speechacoustic features of the framed speech signal includes the followingsteps.

S11: Perform fast Fourier transform on the framed speech signal toobtain an energy spectrum.

S12: Input the energy spectrum into a Mel-scaled triangular filter bankto output a plurality of formant features.

S13: Perform discrete cosine transform on the formant features to obtainthe speech acoustic features.

In step S11, the effective speech signal extracted after framing issubjected to fast Fourier transform, and the speech signal in the timedomain is converted into the energy spectrum in the frequency domain.Fast Fourier transform (FFT) is a fast algorithm of discrete Fouriertransform. The FFT is obtained by improving the algorithm of discreteFourier transform based on odd, even, imaginary and real and othercharacteristics of the discrete Fourier transform.

In step S12, formant is an important feature reflecting the resonancecharacteristics of the vocal tract, which represents the most directsource of pronunciation information, and people use formant informationin speech perception. The formant is an important feature parameter inspeech signal processing and has been widely used as the main feature ofspeech recognition and basic information of speech coding transmission.Formant information is contained in the frequency envelope. Therefore,the key to formant parameter extraction is to estimate the spectralenvelope of natural speech. It is generally believed that the maximumvalue in the spectral envelope is the formant. The energy spectrum isthen input to a Mel-scaled triangular filter to calculate logarithmicenergy output by each filter bank, and features of filter bank outputare also called Filter Bank (FBANK) features. The purpose of filteringwith the Mel-scaled filter bank is that there are many redundancies infrequency domain signals, the filter bank can simplify the amplitude offrequency domain, and each frequency band is represented by a value. Thespecific step of filtering is to multiply and accumulate the frequencyspectrum obtained after fast Fourier transform with each filter, and theobtained value is the energy value of the frame data in the frequencyband corresponding to the filter.

In step S13, after the formant feature is calculated by logarithmicenergy, an MFCC (mel frequency cepstrum coefficient), namely an MFCCacoustic feature, can be obtained by discrete cosine transform. Sincethe human ear's perception of sound is not linear, log as a nonlinearrelation is used for better description. Cepstrum analysis can only beperformed after log is taken. Therefore, the energy value islogarithmically calculated to obtain logarithmic energy. Because theresult of discrete cosine transform has no imaginary part, it is betterto calculate. Therefore, the logarithmic energy is subjected to discretecosine transform, and finally the MFCC, namely the MFCC acousticfeature, is obtained.

Further, after the step of obtaining a voiceprint model, the methodincludes the following step.

S6: Input a speech signal to be verified into the voiceprint model toobtain an identity verification result.

As described in step S6, after a voiceprint model is established, thevoiceprint model has a port for receiving speech signals. Afterreceiving a speech signal, the voiceprint model calculates the speechsignal. If the speech signal is a speech signal of the target user, asignal indicating a correct target is output. If the speech signal isnot the speech signal of the target user, a signal indicating a wrongtarget is output.

Referring to FIG. 6, further, the step of performing fast Fouriertransform on the framed speech signal includes the following steps.

S111: Perform pre-emphasis processing on the framed speech signal.

S112: Window the pre-emphasized speech signal.

S113: Extract an effective part of speech signal containing a speechsound through speech endpoint detection.

S114: Perform fast Fourier transform on the effective part of speechsignal.

In step S111, the speech signal is pre-emphasized. Since the speechsignal also contains some noises, if the speech signal is directlysubjected to voiceprint modeling processing, some effects includingnoises are obtained, and the established model is inaccurate, resultingin an increase in recognition error rate. Direct extraction of aneffective speech is realized by a method of speech endpoint detection,namely by recognizing when in the speech a person starts to speak andwhen the person ends the speaking. The main principle of speech endpointdetection is that the speech spectrum of an audio file containing humanspeech is higher than that of an audio file containing no human speech.Therefore, before an effective speech is extracted, the speech signal isfirst pre-emphasized; that is, the speech signal is amplified to makethe frequency spectrum containing the human speech higher, thedifference between the two is more obvious, and speech endpointdetection is performed better.

In step S112, one of the goals that speech signal processing oftenachieves is to clarify the distribution of frequency components in thespeech. A mathematical tool for doing this is the Fourier transform. TheFourier transform requires an input signal to be stable. However, thespeech is unstable from macro perspective. However, from microperspective, the speech signal can be seen as stable, and can beintercepted to perform the Fourier transform. The purpose of windowingis to make the amplitude of a frame of signal gradually change to 0 atboth ends. Gradual change to 0 is good for Fourier transform and canimprove the resolution of a transform result (namely a spectrum).

In step S113, since the speech signal also contains some noise, if thespeech signal is directly subjected to voiceprint modeling processing,some effects including noise are obtained, and the established model isinaccurate, directly resulting in an increase in recognition error rate.Direct extraction of an effective speech is realized by a method ofspeech endpoint detection, namely by recognizing when in the speech aperson starts to speak and when the person ends the speaking. Throughendpoint detection, speech and noise are distinguished and effectivespeech parts are extracted. People pause when speaking. An effectivepart of speech is extracted, that is, the noise part when a personpauses while speaking is removed, and only the effective speech of humanspeech is extracted.

In step S114, Fast Fourier transform (FFT) is a fast algorithm ofdiscrete Fourier transform. The FFT is obtained by improving thealgorithm of discrete Fourier transform based on odd, even, imaginaryand real and other characteristics of the discrete Fourier transform. Inthis way, the speech acoustic features of the speaker in a speech can becalculated.

Referring to FIG. 7, further, after the step of obtaining a voiceprintmodel, the method includes the following step.

S7: Receive attribute information marked by a user on the voiceprintmodel, where the attribute information including at least one of gender,age and ethnicity of the target user.

In step S7, after the voiceprint model is established, the systemreceives a mark added by the user to the voiceprint model, and markspersonal information of the target user corresponding to the voiceprintmodel, including gender, age, nationality, height, weight, and the like.As voiceprint information is related to vocal organs, vocal controlorgans include vocal cords, soft palate, tongue, teeth, lips, and thelike. Vocal resonators include pharyngeal cavity, oral cavity and nasalcavity. People with similar vocal organs have certain sound similaritiesor close sounds. Therefore, people with the same attribute informationhave similar voiceprint information. After voiceprint information ofmultiple people is collected, the voiceprint information is summarizedto find out the relationship between voiceprint information and people.

Referring to FIG. 8, further, in some embodiments, the step ofextracting speech acoustic features of the framed speech signal includesthe following steps.

S14: Identify a speech content of the input framed speech signal.

S15: Determine a sounding part of the speech content.

S16: Split the speech signal based on the sounding part.

S17: Extract speech acoustic features from the split speech signalseparately.

In step S14, a speech content of the input framed speech signal isidentified, that is, the speech signal is identified by means of speechidentification, and specific speech text information of the speaker isidentified.

In step S15, a sounding part of the speech content is determined, thatis, spelling or phonetic symbols of the speech content are read based onthe speech content identified in S14, and a sounding part is determinedbased on the content of the spelling or phonetic symbols. Commonly usedmain sounding parts are throat, tongue, nose, teeth, and the like. Forexample, in Mandarin, the corresponding sounding parts are determinedbased on different initials. The corresponding table of specificinitials and sounding parts is as follows:

Initial Sounding part b p m Upper lip and lower lip f Upper teeth andlower lip z c s Anterior tongue tip and upper tooth back d t n l Middleof tongue tip and upper alveolar ridge zh ch sh r Posterior tongue tipand anterior hard palate j q x Lingual surface and middle of hard palateg k h Lingual root and posterior hard palate

In step S16, after the sounding part of the speech content isdetermined, the sounding part of the speech signal is retrospectivelychecked, and the speech signal is split into a plurality of segmentsbased on the sounding part corresponding to the speech signal. Eachsegment of speech signals corresponds to one sounding part. For example,for a speech signal with a duration of 10 s, the speech content of the0th-2rd s contains an initial b or p or m, the speech content of the3rd-5th s contains an initial j or q or x, the voice content of the6th-10th seconds includes an initial d or t or n or 1, and then thespeech signal is split into three segments of speech signals. The firstsegment is the speech content of the 0th-2rd s, the second segment isthe speech content of the 3rd-5th s, and the third segment is the speechcontent of the 6th-10th s.

In step S17, acoustic features are separately extracted from the threesegments of speech contents, and then the acoustic features areseparately input into the subsequent deep learning model forcalculation.

According to the method for establishing a voiceprint model provided bysome embodiments, a cluster structure is obtained from extracted speechacoustic features based on deep neural network training and thencoordinate mapping and activation function calculation is performed onthe cluster structure to obtain a voiceprint model, and the voicerecognition error rate of the voiceprint model can be reduced.

Referring to FIG. 9, some embodiments provide an apparatus forestablishing a voiceprint model, including:

an extraction module 1, configured to frame an input speech signal of atarget user, and separately extract speech acoustic features of theframed speech signal;

a cluster structure module 2, configured to input the plurality ofspeech acoustic features into a deep learning model that is based onneural network training, and collect the speech acoustic features toform at least one cluster structure;

a calculation module 3, configured to calculate an average value and astandard deviation of at least one of the cluster structure;

a feature vector module 4, configured to carry out coordinatetransformation and activation function calculation on the average valueand the standard deviation to obtain a feature vector; and

a model module 5, configured to input the feature vector and an identityverification result of the target user into a preset basic model toobtain a voiceprint model corresponding to the target user, where thevoiceprint model is used to verify whether an input speech signalbelongs to the target user.

In some embodiments, voiceprint in the extraction module 1 is a soundwave spectrum that carries verbal information and is displayed byelectroacoustic instruments. Generation of a human language is a complexphysiological and physical process between the human language center andvocal organs. The vocal organs (tongue, teeth, throat, lungs, and nasalcavity) used by people in speech are very different in size and form, sothe voiceprints of any two people are different. A speech signal is ananalog signal that carries specific information, and a source thereof isa speech signal obtained by converting a sound signal emitted by aperson, Each person's voiceprint is different, and thus speech signalsobtained by converting the sounds generated by the same person whospeaks the same word are also different. Therefore, speech acousticfeatures contained in the speech signal are also different. The speechacoustic features are voiceprint information contained in the soundemitted by each person. Framing refers to dividing a continuous speechsignal into multiple segments. At a speech rate of a normal speech, theduration of the phoneme is about 50 to 200 milliseconds, so the framelength is generally less than 50 milliseconds. Microscopically, theframe length also necessarily includes enough vibration cycles. For theaudio frequency of voice, the male voice is about 100 Hz, the femalevoice is about 200 Hz, and the cycles obtained by conversion are 10 msand 5 ms. Generally, a frame should contain multiple cycles, and thusthe cycle is generally at least 20 ms. The so-called speech signalincludes a continuous speech, such as a sentence and a paragraph. Thespeech acoustic feature may be a MFCC, or a PLP, or a Filter BankFeature, or the like of a speech segment. Certainly, the speech acousticfeature may also be original speech data of the speech segment. Theextraction module 1 extracts the speech acoustic features of the speechsignals of the target user, which means that the speech signals of theperson who needs to build a voiceprint model are extracted, while speechsignals generated by a non-target user are not extracted. The speechacoustic features are a speech signal containing a spoken portionextracted from a continuous speech signal and thus are a continuousspeech signal. After framing the speech signal, the extraction module 1obtains a plurality of segments of speech signals, and separatelyextracts speech acoustic features of each segment of speech signals,thereby obtaining a plurality of speech acoustic features.

The speech acoustic features are extracted from the framed speech signaland are a segment of speech signals. The cluster structure module 2inputs the speech signal into the neural network training model, withthe purpose of collecting and calculating the speech acoustic features,which facilitates statistics collection and calculation of speechacoustic features. The cluster structure module 2 collects the segmentof speech acoustic features, which can embody the same common featuresof a plurality of speech acoustic features collected together.

After inputting a plurality of speech acoustic features into the deeplearning model that is based on the neural network, the calculationmodule 3 inputs and obtains at least one cluster structure x1, x2, x1, .. . , xn, and if the cluster structure is a p-dimensional vector,xn=(xi1,xi2, . . . , xip)^(T)(i=1,2, . . . n). The average value and thestandard deviation of the cluster structures are calculated. The averagevalue and the standard deviation of the cluster structures are obtained.A method for calculating the average value of a plurality of clusterstructures is as follows: first according to a formula:

${{xj} = {\frac{1}{n}{\sum\limits_{i = 1}^{n}{{xij}\left( {{j = 1},2,{\ldots\mspace{11mu} p}} \right)}}}},$the calculation module 3 calculates the average value of each component,then the calculation module 3 calculates average vectors of p dimensionsaccording to a formula: x0=(x1,x2, . . . ,xj)^(T), and the calculationmodule 3 combines the average vectors of the p dimensions to form theaverage value of the cluster structures: E(x). The formula forcalculating the standard deviation of a plurality of cluster structuresby the calculation module 3 is: D(x)=E{[x−E(x)][x−E(x)]^(T)}

The feature vector module 4 subjects the foregoing E(x) and D(x) toa-level mapping and b-level mapping. The a-level mapping is to performcoordinate transformation on the average value and standard deviation ofthe cluster structure, and the b-level mapping is to calculate theaverage value and standard deviation of the cluster structure through anactivation function and then obtain a nonlinear result, where the resultis a feature vector for establishing a voiceprint model.

The model module 5 inputs the feature vector and an identityverification result of the target user into a preset basic model toobtain a voiceprint model of the target user, and after receiving aspeech signal, the voiceprint model determines whether a person whogenerates the speech signal is the target user. The basic model refersto a neural network model, such as a BP neural network model. The BPneural network is a multi-layer network for weight training of nonlineardifferentiable functions. The biggest characteristic of the BP neuralnetwork is that the highly non-linear mapping of the system from pmspace to yn space n (the number of output nodes) composed of patternvectors p of m input neurons can be achieved only by means of sampledata with no need to establish a mathematical model of the system. Forthe foregoing a-level mapping and b-level mapping, the processes of thetwo mapping are not listed in any particular order. Sigmoid can be usedas the activation function of the b-level mapping. The Sigmoid functionis a common S function in biology, also known as a sigmoid growth curve,which is mainly used as a threshold function of a neural network and isphysically closest to a biological neuron. The form of a nonlinearactivation function of the Sigmoid function is σ(x)=1/(1+e^(−x)), wherex is an input speech acoustic feature, and e is a natural constant,which is a rule of mathematics and is about 2.71828.

Referring to FIG. 10, in some embodiments, the deep learning modelincludes a plurality of model layers, and the cluster structure module 2includes:

an input unit 21, configured to input the plurality of speech acousticfeatures into the deep learning model;

an establishment unit 22, configured to select any time node t of theplurality of speech acoustic features, and establish the n-th modellayer with the speech acoustic features in every tn time from the timenode t, where n is a positive integer; and

a selection unit 23, configured to select a target model layer in theplurality of model layers and obtain at least one cluster structuregenerated at the target model layer.

In some embodiments, a plurality of speech acoustic features areextracted from a continuous speech signal, so that the plurality ofspeech acoustic features are also continuous. The input unit 21 alsoinputs the speech acoustic features in a time sequence when theplurality of speech acoustic features are input into the deep learningmodel.

The plurality of speech acoustic features are each a continuous soundsignal, and after being combined together, the speech acoustic featuresare also a continuous sound signal. In the plurality of speech acousticfeatures, the establishment unit 22 selects any time node t, and thencollects the speech acoustic features within a tn time period from thetime t to form a cluster structure at one of the model layers. Since thedeep learning model has multiple model layers, the time node t selectedon each model layer is different from the time period tn from the timet, and the number of cluster structures generated by each model layer isnot exactly the same. For example, the plurality of speech acousticfeatures have a total of 10 s, namely 10000 ms. The selected time nodeis the 2000-th ins, and the establishment unit 22 establishes a firstmodel layer. The first model layer is established at intervals of t1 (1ms), and then the first model layers have a total of 10000 frames. Thenthe establishment unit 22 establishes a second model layer, and takes t2as 2 ms. The second model layer is established every 2 ms, and thesecond model layers have a total of 500 frames.

A plurality of model layers are obtained after learning by the deeplearning model, and each model layer has a plurality of clusterstructures. The selection unit 23 selects cluster structures at one ofthe model layers as parameters for subsequent generation of a voiceprintmodel.

Referring to FIG. 11, further, the model module 4 includes:

a dimension reduction unit 51, configured to reduce dimensions of thefeature vector of the voiceprint model; and

a model unit 52, configured to input the dimension-reduced featurevector into the preset basic model to obtain the voiceprint model.

In some embodiments, the dimension reduction unit 51 uses an LDA basedon probability to reduce dimensions. The model unit 52 then performsmodel design of the voiceprint of the target user. At the same time, anoutput layer adopts a Softmax function calculation result. All nodes areinitialized with uniform random weights in the interval [−0.05 to 0.05],the initial offset is 0, and the final voiceprint model is obtained. Theinput of the Softmax function is a vector, and the output thereof isalso a vector. Each element in the vector is a probability value between0 and 1. When the training model is biased, if the deviation degreebetween a prediction tag and an original real tag of the training setobtained from each training is too small, over-fitting will be caused,because the noise in the training set may also be learned. Therefore,the bias characterizes the fitting capacity of a learning algorithmitself. If the fitting capacity is not good, the bias is large, so thatunder-fitting is caused. In contrast, if the fitting capacity is toogood, the bias is small, and over-fitting occurs easily. During thetraining, it can be found that the bias should be gradually smaller intheory, indicating that the model is learning useful thingscontinuously.

Referring to FIG. 12, further, the extraction module 1 includes:

a calculation unit 11, configured to perform fast Fourier transform onthe framed speech signal to obtain an energy spectrum;

an input unit 12, configured to input the energy spectrum into aMel-scaled triangular filter bank to output a plurality of formantfeatures; and

a transform unit 13, configured to perform discrete cosine transform onthe formant features to obtain the speech acoustic features.

In some embodiments, the calculation unit 11 subjects the effectivespeech signal extracted after framing to fast Fourier transform, andconverts the speech signal in the time domain into the energy spectrumin the frequency domain. FFT is a fast algorithm of discrete Fouriertransform. The FFT is obtained by improving the algorithm of discreteFourier transform based on odd, even, imaginary and real and othercharacteristics of the discrete Fourier transform. Formant is animportant feature reflecting the resonance characteristics of the vocaltract, which represents the most direct source of pronunciationinformation, and people use formant information in speech perception.The formant is a very important feature parameter in speech signalprocessing and has been widely used as the main feature of speechrecognition and basic information of speech coding transmission. Formantinformation is contained in the frequency envelope, so the key toformant parameter extraction is to estimate the spectral envelope ofnatural speech. It is generally believed that the maximum value in thespectral envelope is the formant. The input unit 12 then inputs energyspectrum to a Mel-scaled triangular filter bank to calculate logarithmicenergy output by each filter bank, and features of filter bank outputare also called FBANK features. The purpose of filtering with theMel-scaled filter bank is that there are many redundancies in frequencydomain signals, the filter bank can simplify the amplitude of frequencydomain, and each frequency band is represented by a value. The specificstep of filtering is to multiply and accumulate the frequency spectrumobtained after fast Fourier transform with each filter, and the obtainedvalue is the energy value of the frame data in the frequency bandcorresponding to the filter. After the formant feature is calculated bylogarithmic energy, an MFCC, namely an MFCC acoustic feature, can beobtained by discrete cosine transform performed by the transform unit13. Since the human ear's perception of sound is not linear, log as anonlinear relation is used for better description. Cepstrum analysis canonly be performed after log is taken, Therefore, the energy value islogarithmically calculated to obtain logarithmic energy. Because theresult of discrete cosine transform has no imaginary part, it is betterto calculate. Therefore, the logarithmic energy is subjected to discretecosine transform, and finally the MFCC, namely the MFCC acousticfeature, is obtained.

Further, the foregoing apparatus for establishing a voiceprint modelalso includes:

a verification module 6, configured to input a speech signal to beverified into the voiceprint model to obtain an identity verificationresult.

In some embodiments, after the voiceprint model is established, thevoiceprint model has a port for receiving speech signals. After theverification module 6 receives a speech signal, the voiceprint modelcalculates the speech signal. If the speech signal is a speech signal ofthe target user, the verification module 6 outputs a signal indicating acorrect target. If the speech signal is not the speech signal of thetarget user, the verification module 6 outputs a signal indicating awrong target.

Referring to FIG. 13, further, the apparatus for establishing avoiceprint model also includes:

an attribute module 7, configured to receive attribute informationmarked by a user on the voiceprint model, where the attributeinformation including at least one of gender, age and ethnicity of thetarget user.

In some embodiments, after the voiceprint model is established, theattribute module 7 receives a mark added by the user to the voiceprintmodel, and marks personal information of the target user correspondingto the voiceprint model, including gender, age, nationality, height,weight, and the like. As voiceprint information is related to vocalorgans, vocal control organs include vocal cords, soft palate, tongue,teeth, lips, and the like. Vocal resonators include pharyngeal cavity,oral cavity and nasal cavity. People with similar vocal organs havecertain sound similarities or close sounds. Therefore, people with thesame attribute information have similar voiceprint information. Aftervoiceprint information of multiple people is collected, the voiceprintinformation is summarized to find out the relationship betweenvoiceprint information and people.

Referring to FIG. 14, further, the extraction module 1 also includes:

an identification unit 14, configured to identify a speech content ofthe input framed speech signal;

a determining unit 15, configured to determine a sounding part of thespeech content;

a split unit 16, configured to split the speech signal based on thesounding part; and an extraction unit 17, configured to extract speechacoustic features from the split speech signal separately.

In some embodiments, the identification unit 14 identifies a speechcontent of the input framed speech signal, that is, the speech signal isrecognized by means of speech recognition, and specific speech textinformation of the speaker is recognized.

The determining unit 15 determines a sounding part of the speechcontent, that is, spelling or phonetic symbols of the speech content areread based on the speech content identified by the foregoingidentification unit 14, and a sounding part is determined based on thecontent of the spelling or phonetic symbols. Commonly used main soundingparts are throat, tongue, nose, teeth, and the like. For example, inMandarin, the corresponding sounding parts are determined based ondifferent initials. The corresponding table of specific initials andsounding parts is as follows:

Initial Sounding part b p m Upper lip and lower lip f Upper teeth andlower lip z c s Anterior tongue tip and upper tooth back d t n l Middleof tongue tip and upper alveolar ridge zh ch sh r Posterior tongue tipand anterior hard palate j q x Lingual surface and middle of hard palateg k h Lingual root and posterior hard palate

After the determining unit 15 determines the sounding part of the speechcontent, the split unit 16 retrospectively checks the sounding part ofthe speech signal, and then the split unit 16 splits the speech signalinto a plurality of segments based on the sounding part corresponding tothe speech signal. Each segment of speech signals corresponds to onesounding part. For example, for a speech signal with a duration of 10 s,the speech content of the 0th-2rd s contains an initial b or p or m, thespeech content of the 3rd-5th s contains an initial j or q or x, thevoice content of the 6th10th seconds includes an initial d or t or nor1, and then the split unit 16 splits the speech signal into threesegments of speech signals. The first segment is the speech content ofthe 0th-2rd s, the second segment is the speech content of the 3rd-5ths, and the third segment is the speech content of the 6th-10th s. Thenthe extraction unit 17 extracts acoustic features from the threesegments of speech contents separately, and then separately inputs theacoustic features into the subsequent deep learning model forcalculation.

According to the apparatus for establishing a voiceprint model providedby some embodiments, a cluster structure is obtained from extractedspeech acoustic features based on deep neural network training and thencoordinate mapping and activation function calculation is performed onthe cluster structure to obtain a voiceprint model, and the voicerecognition error rate of the voiceprint model can be reduced.

Referring to FIG. 15, some embodiments also provide a computer device,which may be a server, and an internal structure thereof may be as shownin FIG. 15. The computer device includes a processor, a memory, anetwork interface and a database which are connected by using a systembus. The processor designed by the computer is configured to providecomputing and control capabilities. The memory of the computer deviceincludes a non-volatile storage medium and an internal memory. Thenon-volatile storage medium stores an operating system, computerreadable instructions, and a database. The internal memory provides anenvironment for the operation of the operating system and the computerreadable instructions in the non-volatile storage medium. The databaseof the computer device is configured to store data such as data forestablishing a voiceprint model. The network interface of the computerdevice is configured to communicate with an external terminal through anetwork. When the computer readable instruction is executed, a processof each of the foregoing methods according to the embodiments isexecuted. Those skilled in the art can understand that the structureshown in FIG. 15 is merely a block diagram of a partial structurerelated to the solution of some embodiments, and does not constitute alimitation on the computer device to which the solution of the presentdisclosure is applied.

Some embodiments also provide a non-volatile computer readable storagemedium storing a computer readable instruction, where a process of eachof the foregoing methods according to the embodiments is executed whenthe computer readable instruction is executed. The above descriptionsare only some embodiments of the present disclosure, and are notintended to limit the patent scope of the present disclosure. Anyequivalent structure or equivalent process transformation performedusing the specification and the accompanying drawings of the presentdisclosure may be directly or indirectly applied to other relatedtechnical fields and similarly falls within the patent protection scopeof the present disclosure.

What is claimed is:
 1. A method for establishing a voiceprint model,comprising: framing an input speech signal of a target user, andseparately extracting a plurality of speech acoustic features of theframed speech signal; inputting the plurality of speech acousticfeatures into a deep learning model that is based on neural networktraining, and collecting the plurality of speech acoustic features toform at least one cluster structure; calculating an average value and astandard deviation of at least one of the cluster structure; performingcoordinate transformation and activation function calculation on theaverage value and the standard deviation to obtain a feature vector; andinputting the feature vector and an identity verification result of thetarget user into a preset basic model to obtain a voiceprint modelcorresponding to the target user, wherein the voiceprint model is usedto verify whether an input speech signal belongs to the target user. 2.The method for establishing a voiceprint model according to claim 1,wherein the deep learning model comprises a plurality of model layers,and the step of inputting the plurality of speech acoustic features intoa deep learning model that is based on neural network training, andcollecting the plurality of speech acoustic features to form at leastone cluster structure comprises: inputting the plurality of speechacoustic features into the deep learning model; selecting any time nodet of the plurality of speech acoustic features, and establishing an n-thmodel layer with the plurality of speech acoustic features in every totime from the time node t, wherein n is a positive integer; andselecting a target model layer in the plurality of model layers andobtaining at least one cluster structure generated at the target modellayer.
 3. The method for establishing a voiceprint model according toclaim 1, wherein the step of inputting the feature vector and anidentity verification result of the target user into a preset basicmodel to obtain a voiceprint model corresponding to the target usercomprises: reducing dimensions of the feature vector of the voiceprintmodel; and inputting the dimension-reduced feature vector and theidentity verification result of the target user into the preset basicmodel to obtain the voiceprint model.
 4. The method for establishing avoiceprint model according to claim 1, wherein the step of extractingthe plurality of speech acoustic features of the framed speech signalcomprises: performing fast Fourier transform on the framed speech signalto obtain an energy spectrum; inputting the energy spectrum into aMel-scaled triangular filter bank to output a plurality of formantfeatures; and performing discrete cosine transform on the formantfeatures to obtain the plurality of speech acoustic features.
 5. Themethod for establishing a voiceprint model according to claim 1, whereinafter the step of obtaining a voiceprint model, the method comprises:inputting a speech signal to be verified into the voiceprint model toobtain an identity verification result.
 6. The method for establishing avoiceprint model according to claim 1, wherein after the step ofobtaining a voiceprint model, the method comprises: receiving attributeinformation marked by a user on the voiceprint model, wherein theattribute information including at least one of gender, age andethnicity of the target user.
 7. The method for establishing avoiceprint model according to claim 1, wherein the step of extracting aplurality of speech acoustic features of the framed speech signalcomprises: identifying a speech content of the framed speech signal;determining a sounding part of the speech content; splitting the speechsignal based on the sounding part; and extracting a plurality of speechacoustic features from the split speech signal separately.
 8. A computerdevice, comprising a memory storing computer readable instructions and aprocessor, wherein a method for establishing a voiceprint model isimplemented when the processor executes the computer readableinstructions, and the method for establishing a voiceprint modelcomprises: framing an input speech signal of a target user, andseparately extracting a plurality of speech acoustic features of theframed speech signal; inputting the plurality of speech acousticfeatures into a deep learning model that is based on neural networktraining, and collecting the plurality of speech acoustic features toform at least one cluster structure; calculating an average value and astandard deviation of at least one of the cluster structure; performingcoordinate transformation and activation function calculation on theaverage value and the standard deviation to obtain a feature vector; andinputting the feature vector and an identity verification result of thetarget user into a preset basic model to obtain a voiceprint modelcorresponding to the target user, wherein the voiceprint model is usedto verify whether an input speech signal belongs to the target user. 9.The computer device according to claim 8, wherein the deep learningmodel comprises a plurality of model layers, and the step of inputtingthe plurality of speech acoustic features into a deep learning modelthat is based on neural network training, and collecting the pluralityof speech acoustic features to form at least one cluster structurecomprises: inputting the plurality of speech acoustic features into thedeep learning model; selecting any time node t of the plurality ofspeech acoustic features, and establishing an n-th model layer with theplurality of speech acoustic features in every to time from the timenode t, wherein n is a positive integer; and selecting a target modellayer in the plurality of model layers and obtaining at least onecluster structure generated at the target model layer.
 10. The computerdevice according to claim 8, wherein the step of inputting the featurevector and an identity verification result of the target user into apreset basic model to obtain a voiceprint model corresponding to thetarget user comprises: reducing dimensions of the feature vector of thevoiceprint model; and inputting the dimension-reduced feature vector andthe identity verification result of the target user into the presetbasic model to obtain the voiceprint model.
 11. The computer deviceaccording to claim 8, wherein the step of extracting the plurality ofspeech acoustic features of the framed speech signal comprises:performing fast Fourier transform on the framed speech signal to obtainan energy spectrum; inputting the energy spectrum into a Mel-scaledtriangular filter bank to output a plurality of formant features; andperforming discrete cosine transform on the formant features to obtainthe plurality of speech acoustic features.
 12. The computer deviceaccording to claim 8, wherein after the step of obtaining a voiceprintmodel, the method comprises: inputting a speech signal to be verifiedinto the voiceprint model to obtain an identity verification result. 13.The computer device according to claim 8, wherein after the step ofobtaining a voiceprint model, the method comprises: receiving attributeinformation marked by a user on the voiceprint model, wherein theattribute information including at least one of gender, age andethnicity of the target user.
 14. The computer device according to claim8, wherein the step of extracting a plurality of speech acousticfeatures of the framed speech signal comprises: identifying a speechcontent of the framed speech signal; determining a sounding part of thespeech content; splitting the speech signal based on the sounding part;and extracting a plurality of speech acoustic features from the splitspeech signal separately.
 15. A non-transitory computer readable storagemedium storing computer readable instructions, wherein a method forestablishing a voiceprint model is implemented when the computerreadable instructions is executed by a processor, and the method forestablishing a voiceprint model comprises: framing an input speechsignal of a target user, and separately extracting a plurality of speechacoustic features of the framed speech signal; inputting the pluralityof speech acoustic features into a deep learning model that is based onneural network training, and collecting the plurality of speech acousticfeatures to form at least one cluster structure; calculating an averagevalue and a standard deviation of at least one of the cluster structure;performing coordinate transformation and activation function calculationon the average value and the standard deviation to obtain a featurevector; and inputting the feature vector and an identity verificationresult of the target user into a preset basic model to obtain avoiceprint model corresponding to the target user, wherein thevoiceprint model is used to verify whether an input speech signalbelongs to the target user.
 16. The non-transitory computer readablestorage medium according to claim 15, wherein the deep learning modelcomprises a plurality of model layers, and the step of inputting theplurality of speech acoustic features into a deep learning model that isbased on neural network training, and collecting the plurality of speechacoustic features to form at least one cluster structure comprises:inputting the plurality of speech acoustic features into the deeplearning model; selecting any time node t of the plurality of speechacoustic features, and establishing a n-th model layer with theplurality of speech acoustic features in every to time from the timenode t, wherein n is a positive integer; and selecting a target modellayer in the plurality of model layers and obtaining at least onecluster structure generated at the target model layer.
 17. Thenon-transitory computer readable storage medium according to claim 15,wherein the step of inputting the feature vector and an identityverification result of the target user into a preset basic model toobtain a voiceprint model corresponding to the target user comprises:reducing dimensions of the feature vector of the voiceprint model; andinputting the dimension-reduced feature vector and the identityverification result of the target user into the preset basic model toobtain the voiceprint model.
 18. The non-transitory computer readablestorage medium according to claim 15, wherein the step of extracting theplurality of speech acoustic features of the framed speech signalcomprises: performing fast Fourier transform on the framed speech signalto obtain an energy spectrum; inputting the energy spectrum into aMel-scaled triangular filter bank to output a plurality of formantfeatures; and performing discrete cosine transform on the formantfeatures to obtain the plurality of speech acoustic features.
 19. Thenon-transitory computer readable storage medium according to claim 15,wherein after the step of obtaining a voiceprint model, the methodcomprises: inputting a speech signal to be verified into the voiceprintmodel to obtain an identity verification result.
 20. The non-transitorycomputer readable storage medium according to claim 15, wherein afterthe step of obtaining a voiceprint model, the method comprises:receiving attribute information marked by a user on the voiceprintmodel, wherein the attribute information including at least one ofgender, age and ethnicity of the target user.